package services

import (
	"ssims/dao"
	"ssims/models"
)

func GetAllFamily(status map[string]interface{}) (error, []models.Family, int64) {
	err, statusData, total := dao.GetAllFamily(status)
	return err, statusData, total
}

func DelFamily(id string) error {
	err := dao.DelFamily(id)
	return err
}

func UpdateFamily(status models.Family) error {
	err := dao.UpdateFamily(status)
	return err
}

func AddFamily(status models.Family) error {
	err := dao.AddFamily(status)
	return err
}
